<?php
SESSION_START();
header("content-type:text/html;charset=utf-8");

date_default_timezone_set("PRC");


$commentnewsid=$_POST['newsid'];

$commentnewscontent="";
if(isset($_SESSION['userid'])){
	$userid=$_SESSION['userid'];
	$sql="SELECT * FROM comment where commentuserid='$userid' ORDER BY commenttime DESC LIMIT 0,5";
	require_once("db_comment_content.php"); 
	$comment=new db_comment;
	$commentnewscontent=$comment->commentcontent($sql);

	echo $commentnewscontent;
}
else{
	//$userid=$_SESSION['userid'];
	echo "1";
}
?>